import request from './request'

const addCondition = (result) =>
  request.post('/condition', result)

const getCondition = async ()=>{
   const res =  await request.get('/condition')
   return res
}
const deleteCondition = async (id)=>{
  const res =  await request.delete('/condition',{params:{id:id}})
  return res
}
const updateCondition = async (id)=>{
  const res =  await request.put('/condition',{id:id})
  return res
}

export { addCondition,getCondition,deleteCondition,updateCondition }
